debug: Add GTK_DEBUG=snapshot
authorBenjamin Otte <otte@redhat.com>
Tue, 20 Dec 2016 18:20:02 +0000 (19:20 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Dec 2016 18:26:40 +0000 (19:26 +0100)
commitdef94f03e240babfd589c8ba8e7cc4961a3d6aab
tree4660ea7fd49507b9d972daffb809692d861c4b30
parentacaa04c031f131d3bd1febe704668cf66dc566ae
debug: Add GTK_DEBUG=snapshot

This causes the snapshotting algorithm to dump all widget nodes into
their own container node. We then name that group accordingly (ie
"GtkSwitch<0xdeadbeef>") so you can easily see which node belongs where.

The feature is toggleable in the inspector's visual tab.

There's a few problems with it, becuse GtkSnapshot optimized container
nodes away if they are not needed, so we are losing some widgets...
docs/reference/gtk/running.sgml
gtk/gtkdebug.h
gtk/gtkmain.c
gtk/gtkwidget.c
gtk/inspector/visual.c
gtk/inspector/visual.ui